
package ro.qi.framework.sys.security.entities;

import java.util.Date;

import ro.qi.framework.sys.entities.Entity;

public class SecurityApplicationRole extends Entity {

	public SecurityApplicationRole() {
		super();
	}

	public SecurityApplicationRole(int roleId) {
		super();
		setId(roleId);
		select();
	}

	public SecurityApplicationRole(String roleCode) {
		super();
		setCode(roleCode);
		select();
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setCode(String value) {
		setValue("code", value);
	}

	public String getCode() {
		return getStringValue("code");
	}

	public void setApplicationId(int value) {
		setValue("applicationId", value);
	}

	public int getApplicationId() {
		return getIntValue("applicationId");
	}

	public void setDescription(String value) {
		setValue("description", value);
	}

	public String getDescription() {
		return getStringValue("description");
	}

	public Date getCreatedTime() {
		return getDateValue("createdTime");
	}

	public Date getUpdatedTime() {
		return getDateValue("updatedTime");
	}

}
